package com.yl.cap.analyst.report.domain;

import java.util.List;
import java.util.Set;


/**
 * <p>
 * </p>
 */
public class ReportLevel
{

    /**
     * <p>
     * Represents ...
     * </p>
     */
    private String id;

    /**
     * <p>
     * Represents ...
     * </p>
     */
    private String name;

    /**
     * <p>
     * Represents ...
     * </p>
     */
    //private Integer level;

    /**
     * <p>
     * </p>
     */
    private Report report;

    /**
     * <p>
     * </p>
     * 
     * @poseidon-type com.yl.cap.analyst.user.domain.Group
     */
    private Set groups;
    
    private Integer level;
    
    /**
     * @return Returns the level.
     */
    public Integer getLevel()
    {
        return level;
    }
    /**
     * @param level The level to set.
     */
    public void setLevel(Integer level)
    {
        this.level = level;
    }
    private List reportCode;
    /**
     * @return Returns the reportCode.
     */
    public List getReportCode()
    {
        return reportCode;
    }
    /**
     * @param reportCode The reportCode to set.
     */
    public void setReportCode(List reportCode)
    {
        this.reportCode = reportCode;
    }
    /**
     * @return Returns the id.
     */
    public String getId()
    {
        return id;
    }
    /**
     * @param id The id to set.
     */
    public void setId(String id)
    {
        this.id = id;
    }
    /**
     * @return Returns the level.
     */
    /*public Integer getLevel()
    {
        return level;
    }*/
    /**
     * @param level The level to set.
     */
    /*public void setLevel(Integer level)
    {
        this.level = level;
    }*/
    /**
     * @return Returns the name.
     */
    public String getName()
    {
        return name;
    }
    /**
     * @param name The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }
    /**
     * @return Returns the report.
     */
    public Report getReport()
    {
        return report;
    }
    /**
     * @param report The report to set.
     */
    public void setReport(Report report)
    {
        this.report = report;
    }
    /**
     * @return Returns the groups.
     */
    public Set getGroups()
    {
        return groups;
    }
    /**
     * @param groups The groups to set.
     */
    public void setGroups(Set groups)
    {
        this.groups = groups;
    }
    
    public boolean equals(Object obj)
    {
        if (obj instanceof ReportLevel)
        {
            if (((ReportLevel)obj).getId().equals(this.getId()))
            {
                return true;    
            }
        }
        return false;
    }
}